package routers

import (
	"beegoProject/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/register", &controllers.RegisterMain{}, "get:GetRegister;post:PostRegister")
	beego.Router("/login", &controllers.LoginMain{}, "get:GetLogin;post:PostLogin")
	beego.Router("/Article/AddArticle", &controllers.AddArticle{}, "get:GetArticle;post:PostArticle")
	beego.Router("/Article/GetArticleList", &controllers.GetArticleList{})
	beego.Router("/Article/DeleteArticle", &controllers.DeleteArticle{})

}
